package com.shopowner.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Coach implements Serializable {
    private String cno;

    private String stno;

    private String ano;

    private String uno;

    private String cname;

    private String cimg;

    private String csex;

    private String cage;

    private String cheight;

    private String cweight;

    private String cpwd;

    private String cemail;

    private String caddress;

    private String cstate;

    private String cdesc;

    private String cgrade;

    private String salt;

    private String cfans;

    private static final long serialVersionUID = 1L;

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getStno() {
        return stno;
    }

    public void setStno(String stno) {
        this.stno = stno;
    }

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCimg() {
        return cimg;
    }

    public void setCimg(String cimg) {
        this.cimg = cimg;
    }

    public String getCsex() {
        return csex;
    }

    public void setCsex(String csex) {
        this.csex = csex;
    }

    public String getCage() {
        return cage;
    }

    public void setCage(String cage) {
        this.cage = cage;
    }

    public String getCheight() {
        return cheight;
    }

    public void setCheight(String cheight) {
        this.cheight = cheight;
    }

    public String getCweight() {
        return cweight;
    }

    public void setCweight(String cweight) {
        this.cweight = cweight;
    }

    public String getCpwd() {
        return cpwd;
    }

    public void setCpwd(String cpwd) {
        this.cpwd = cpwd;
    }

    public String getCemail() {
        return cemail;
    }

    public void setCemail(String cemail) {
        this.cemail = cemail;
    }

    public String getCaddress() {
        return caddress;
    }

    public void setCaddress(String caddress) {
        this.caddress = caddress;
    }

    public String getCstate() {
        return cstate;
    }

    public void setCstate(String cstate) {
        this.cstate = cstate;
    }

    public String getCdesc() {
        return cdesc;
    }

    public void setCdesc(String cdesc) {
        this.cdesc = cdesc;
    }

    public String getCgrade() {
        return cgrade;
    }

    public void setCgrade(String cgrade) {
        this.cgrade = cgrade;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getCfans() {
        return cfans;
    }

    public void setCfans(String cfans) {
        this.cfans = cfans;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Coach other = (Coach) that;
        return (this.getCno() == null ? other.getCno() == null : this.getCno().equals(other.getCno()))
            && (this.getStno() == null ? other.getStno() == null : this.getStno().equals(other.getStno()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getUno() == null ? other.getUno() == null : this.getUno().equals(other.getUno()))
            && (this.getCname() == null ? other.getCname() == null : this.getCname().equals(other.getCname()))
            && (this.getCimg() == null ? other.getCimg() == null : this.getCimg().equals(other.getCimg()))
            && (this.getCsex() == null ? other.getCsex() == null : this.getCsex().equals(other.getCsex()))
            && (this.getCage() == null ? other.getCage() == null : this.getCage().equals(other.getCage()))
            && (this.getCheight() == null ? other.getCheight() == null : this.getCheight().equals(other.getCheight()))
            && (this.getCweight() == null ? other.getCweight() == null : this.getCweight().equals(other.getCweight()))
            && (this.getCpwd() == null ? other.getCpwd() == null : this.getCpwd().equals(other.getCpwd()))
            && (this.getCemail() == null ? other.getCemail() == null : this.getCemail().equals(other.getCemail()))
            && (this.getCaddress() == null ? other.getCaddress() == null : this.getCaddress().equals(other.getCaddress()))
            && (this.getCstate() == null ? other.getCstate() == null : this.getCstate().equals(other.getCstate()))
            && (this.getCdesc() == null ? other.getCdesc() == null : this.getCdesc().equals(other.getCdesc()))
            && (this.getCgrade() == null ? other.getCgrade() == null : this.getCgrade().equals(other.getCgrade()))
            && (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt()))
            && (this.getCfans() == null ? other.getCfans() == null : this.getCfans().equals(other.getCfans()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCno() == null) ? 0 : getCno().hashCode());
        result = prime * result + ((getStno() == null) ? 0 : getStno().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getUno() == null) ? 0 : getUno().hashCode());
        result = prime * result + ((getCname() == null) ? 0 : getCname().hashCode());
        result = prime * result + ((getCimg() == null) ? 0 : getCimg().hashCode());
        result = prime * result + ((getCsex() == null) ? 0 : getCsex().hashCode());
        result = prime * result + ((getCage() == null) ? 0 : getCage().hashCode());
        result = prime * result + ((getCheight() == null) ? 0 : getCheight().hashCode());
        result = prime * result + ((getCweight() == null) ? 0 : getCweight().hashCode());
        result = prime * result + ((getCpwd() == null) ? 0 : getCpwd().hashCode());
        result = prime * result + ((getCemail() == null) ? 0 : getCemail().hashCode());
        result = prime * result + ((getCaddress() == null) ? 0 : getCaddress().hashCode());
        result = prime * result + ((getCstate() == null) ? 0 : getCstate().hashCode());
        result = prime * result + ((getCdesc() == null) ? 0 : getCdesc().hashCode());
        result = prime * result + ((getCgrade() == null) ? 0 : getCgrade().hashCode());
        result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
        result = prime * result + ((getCfans() == null) ? 0 : getCfans().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cno=").append(cno);
        sb.append(", stno=").append(stno);
        sb.append(", ano=").append(ano);
        sb.append(", uno=").append(uno);
        sb.append(", cname=").append(cname);
        sb.append(", cimg=").append(cimg);
        sb.append(", csex=").append(csex);
        sb.append(", cage=").append(cage);
        sb.append(", cheight=").append(cheight);
        sb.append(", cweight=").append(cweight);
        sb.append(", cpwd=").append(cpwd);
        sb.append(", cemail=").append(cemail);
        sb.append(", caddress=").append(caddress);
        sb.append(", cstate=").append(cstate);
        sb.append(", cdesc=").append(cdesc);
        sb.append(", cgrade=").append(cgrade);
        sb.append(", salt=").append(salt);
        sb.append(", cfans=").append(cfans);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}